<?php
$criteria=new CDbCriteria;
$criteria->condition='`t`.`id` != :uid AND `t`.`status`=1 AND `p`.`type_pg`>0';
$criteria->with=array('p','info');
$criteria->params=array(':uid'=>Yii::app()->user->id);
$dataProvider=new CActiveDataProvider('Users',array(
    'criteria'=>$criteria,
    'pagination'=>array(
        'pageSize'=>20,
    ),
));

$session=new CHttpSession();
$session->open();
$session['i']=1;

?>

<div class="detailContent22 wp" style="min-height: 1335px">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table3 paddingbotton80 ">
        <tbody><tr>
            <th width="15%" bgcolor="#efefef" align="center" class="th1">用户ID</th>
            <th width="10%" bgcolor="#efefef" align="center" class="th1">用户名称</th>
            <th width="14%" bgcolor="#efefef" class="th1">会员类型</th>
            <th width="13%" bgcolor="#efefef" class="th1">理事成员</th>
            <th width="13%" bgcolor="#efefef" align="center" class="th1">专家成员</th>
            <th width="13%" bgcolor="#efefef" align="center" class="th1">管理团队</th>
            <th width="30%" bgcolor="#efefef" align="center">操作指令</th>
        </tr>

        <?php
        if(!empty($dataProvider->data))
            $this->widget('zii.widgets.CListView', array(
                'dataProvider'=>$dataProvider,
                'itemView'=>'_users',
                'ajaxUpdate'=>false,
                'template'=>"{items}\n{pager}",
//        'itemsTagName'=>'ul',
//        'itemsCssClass'=>'tb',
            ));
        ?>
        </tbody></table>
</div>